home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0732.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  1.3 KB  |  32 lines

  1.  
  2. Here's my opinion.
  3.  
  4. The best way to do images in WWW is by using MIME.  I'm sure postscript
  5. is already a supported subtype in MIME, and it deals very nicely with
  6. mixing text and graphics.
  7.  
  8. But it isn't clickable, you say?  Yes your right.  I suspect there is
  9. already an answer to this in display postscript.  Even if there isn't
  10. the addition to standard postscript is trivial.  Define an anchor
  11. command which specifies the URL and uses the current path as a closed
  12. region for the button.  Since postscript deals so well with paths, this
  13. makes arbitrary button shapes trivial.
  14.  
  15. Let's call this specially modified postscript HTPS.  Until HTPS becomes
  16. some sort of standard, every copy of HTPS should include a piece of code
  17. that asks the interpreter if it knows about the anchor command, and if
  18. it doesn't it will substitute in a null command.
  19.  
  20. As far as implementation, this is easy, though not necessarily trivial.
  21. Ghostscript already provides the ability to bind arbitrary functions to
  22. mouse events.  It shouldn't be too horrible to set up anchor to keep
  23. a table of button paths, and have mouse clicks call a function that looks
  24. up what button they are in.
  25.  
  26. Let me point out that it wouldn't be hard to make such a system deal
  27. with html too.  Many people already have code that converts html to
  28. postscript.
  29.  
  30.       tom
  31.  
  32.